package demo.bocweb.login_module.contract;

import demo.bocweb.com.sdk.base.BasePresenter;
import demo.bocweb.com.sdk.base.IBaseModel;
import demo.bocweb.com.sdk.base.IBaseView;
import demo.bocweb.com.sdk.base.bean.BaseBean;
import io.reactivex.Observable;
import okhttp3.RequestBody;

/**
 * Created by zhelun on 2018/2/3.
 */

public interface ResetPhoneContract {
    abstract class IResetPhonePresenter extends BasePresenter<IResetPhoneModel, IResetPhoneView> {
        public abstract void sendSmaCode(RequestBody body);

        public abstract void checkSmaCode(RequestBody body);

        public abstract void resetPhone(RequestBody body);
    }

    interface IResetPhoneModel extends IBaseModel {
        Observable<BaseBean> sendSmaCode(RequestBody body);

        Observable<BaseBean> checkSmaCode(RequestBody body);

        Observable<BaseBean> resetPhone(RequestBody body);

    }

    interface IResetPhoneView extends IBaseView {
        void sendSmaCode();

        void sendSmaCodeSuccess();

        void checkSmaCode();

        void checkSmaCodeSuccess();

        void resetPhone();

        void resetPhoneSuccess();
    }
}
